package chapter15;

/**
 * Created by V5470-I5 on 2016/4/22.
 */
public class SplitDemo {
    public static void main(String[] args){
        for(String token:"Messi,Neymar,Suares".split(",")){
            System.out.println(token);
        }
        for(String token :"MessiOrzNeymarOrzSuares".split("Orz")){
            System.out.println(token);}
            for(String token :"Messi\tNeymar\tSuares".split("\\t")){
                System.out.println(token);

        }
    }
}
